package com.wish.objectadapter;

/**
 * Created by suliucheng on 2021/1/10 21:14
 * Directions:
 */
public class Adapter10V implements IAdapter10V {

    private Power220V power220V;

    public Adapter10V(Power220V power220V) {
        this.power220V = power220V;
    }

    @Override
    public Integer outPut10V() {
        Integer power = this.power220V.getPower();
        int outPut10V = power / 22;
        return outPut10V;
    }
}
